home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 376_04 / os2tool.003 / TOOLS2.INF (.txt) next >
Encoding:
OS/2 Help File  |  1992-10-02  |  59.9 KB  |  2,462 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Welcome ΓòÉΓòÉΓòÉ
  3.  
  4.  TOOLS/2 is a collection of small tools for OS/2 and DOS operating systems. 
  5. Most tools are dual-mode programs - they can be run under both DOS and OS/2. 
  6. Dual mode programs have the words [DUAL MODE] on the upper right corner of 
  7. their manual pages. Protected mode programs are marked [OS/2 ONLY]. 
  8.  
  9.  
  10. ΓòÉΓòÉΓòÉ 2. Readme.txt ΓòÉΓòÉΓòÉ
  11.  
  12.  
  13.                          [README.TXT]
  14.  
  15.             Welcome to TOOLS/2.
  16.  
  17.         Copyright 1990-1992 Martti Ylikoski
  18.             All rights Reserved
  19.  
  20.  
  21.    Genaral.
  22.  
  23.    TOOLS/2 is  a small  set of  tools for OS/2 and DOS. Most
  24.    programs are dual mode programs - they can be run in both
  25.    DOS and OS/2.
  26.  
  27.    TOOLS/2 is Freeware - Feel free to copy it to friends and
  28.    colleques. I  require that  you copy  it  unmodified  and
  29.    entirely (both disks) and don't request any fee for it. I
  30.    grant to  right to  charge a  small fee for the copies of
  31.    this package if you are:
  32.      - a non-profit user group.
  33.      - disk  vendor  approved  by  the  Association  of
  34.      Shareware Professionals
  35.      - have  written permission  from me  and it  has not
  36.      been revoked
  37.    and you  charge a  fee that  is less  than $10  per  disk
  38.    (excluding shipping).
  39.  
  40.    I have  retained copyright  to this  package -  both  the
  41.    source  code  and  accompanying  documentation.  You  may
  42.    however take  out individual  functions and  use them  in
  43.    your  work,  if  your  work  is  totally  unrelated  from
  44.    utilities. You should however clearly mark where you have
  45.    taken the  code from  and pass  my copyright message with
  46.    it. A  message like  "DirScan -  extracted  from  TOOLS/2
  47.    source code.  Copyright(c) Martti Ylikoski 1990-1992. All
  48.    right reserved." will do just fine.
  49.  
  50.    For example  you might  be writing a general installation
  51.    program that at the beginning of the installation seaches
  52.    the disk  for an  older version of the installed product.
  53.    You could  then use  the DirScan-function.  It is however
  54.    prohibited to  use the DirScan in a tool that seaches for
  55.    files and makes small modifications for them.
  56.  
  57.    There are  two ideas  behind holding  copyright to source
  58.    code and  preventing others  from modifying  it. First is
  59.    uncontrolled changes.  I really  don't  want  to  receive
  60.    questions or  bug  reports  about  code  that  I  haven't
  61.    written and don't know anything about.
  62.  
  63.    Second is  to prevent  anyone from  modyfying the  source
  64.    code a  little bit  a starting to sell it for money. What
  65.    is free, must remain free.
  66.  
  67.    For example  someone  might  feel  that  an  installation
  68.    program is  very much  an utility.  However searching for
  69.    the old  version of an installed program constitutes only
  70.    a very  small percentage  of the  program and the type of
  71.    function it  performs is  different of  those in  TOOLS/2
  72.    package.
  73.  
  74.    You may  register your  usage of  TOOLS/2 by sending me a
  75.    check for  $45 draw  on a finnish bank. As stated earlier
  76.    there is  no must  for this.  If  I  receive  even  modes
  77.    amounts money,  I will generally feel very happy and will
  78.    create more  new tools  and correct  the mistakes  in old
  79.    ones.
  80.  
  81.  
  82.    Installing TOOLS/2.
  83.  
  84.    There are  two installation  programs on  the  diskettes.
  85.    Install.cmd is  for OS/2  and install.bat for DOS. Start
  86.    installation by typing
  87.    a:install
  88.    and follow  the instructions.  By  default  TOOLS/2  will
  89.    install the  dual mode  programs to the directory C:\BINB
  90.    and the  protected  mode  (OS/2)  programs  to  directory
  91.    C:\BINP. If you want to change these default directories,
  92.    you must manually edit the installation scripts.
  93.  
  94.    Note  allso  that  one  of  the  demonstation  programs
  95.    (traddemo.cmd for  OS/2 and traddemo.bat for DOS) assumes
  96.    that there  exist a  file demotest.txt in C:\BINB. If you
  97.    have changed  the installtion directories and want to run
  98.    the  demonstrations,  you  must  manually  correct  this
  99.    reference also.
  100.  
  101.    After installing  the tools  you should  edit  the  PATH-
  102.    environment directory  to contain the directories C:\BINB
  103.    and  C:\BINP  in  OS/2  and  C:\BINB  in  DOS  (or  any
  104.    directories  where  you  have  installed  the  tools).
  105.    Otherwise  you  will  not  be  able  to  run  them  (the
  106.    operationg system will not find them). These values start
  107.    to affect after a boot up.
  108.  
  109.  
  110.    TOOLS/2 demonstaration.
  111.  
  112.    There exists  a demonstaration  program which covers most
  113.    of TOOLS/2.  It starts  from a  file demo.cmd  (OS/2)  or
  114.    demo.bat  (DOS).  This  demonstration  calls  then  other
  115.    command scripts. Start the demonstration by typing at the
  116.    command promt:
  117.    demo
  118.    Running the  demo requires  that the PATH-variable is set
  119.    correctly.
  120.  
  121.  
  122.    Documentation.
  123.  
  124.    There is  a manual  page for  each command.  These are in
  125.    .TXT-files. By default the documentation is not copied to
  126.    the disk,  since there  is no standard directory where it
  127.    could be copied.
  128.  
  129.    For OS/2  there is  also a TOOLS2.INF-file. It is in same
  130.    format as  all OS/2  help files.  To view  it type at the
  131.    command prompt:
  132.    view tools2
  133.    You must  be in  the same  directory. The  .TXT files are
  134.    provided because  they are  the  only  way  to  view  the
  135.    documentation under DOS.
  136.  
  137.    If you  want to take a look at the macro language used to
  138.    generate OS/2  help files see the tools2.gen file on disk
  139.    2. There  is also  a makefile  (doc.mak), which shows the
  140.    commands that generated the help file.
  141.  
  142.  
  143.    Source code.
  144.  
  145.    Full source code is provided. Most utilities contain only
  146.    one module.  E.g. the  code used  to  generate  the  mem-
  147.    command is  in mem.c.  There are  also make files for all
  148.    tools. The makefiles have the same name as the tools, but
  149.    end in .mak.
  150.  
  151.  
  152.    Libraries.
  153.  
  154.    The library used with TOOLS/2 is also provided. It's name
  155.    is mtoolsp  in protected  mode and  mtoolsr in real mode.
  156.    These libraries  contain reusable code used to create the
  157.    utilies.  The  makefiles  used  to  create  them  are
  158.    mtoolsp.mak  for  mtoolsp.lib  and  mtoolsr.mak  for
  159.    mtoolsr.lib.  Unfortunately  there  is  currently  no
  160.    ducumentation available  on the  functions except what is
  161.    provided with the source code.
  162.  
  163.  
  164.    Feedback.
  165.  
  166.    There is on disk 1 a feedback form in feedback.txt , which
  167.    contains some  questions  about  your  impressions  about
  168.    TOOLS/2. More  than anything  tools writers need feedback
  169.    from users.  What's good and what's not. What kind of new
  170.    tools are  needed. I  strongly suggest  that you at least
  171.    glance through  it. Also  free format  letters  are  very
  172.    welcome.
  173.  
  174.  
  175.    Registration.
  176.  
  177.    As stated earlier, you may  register your usage by sending
  178.    me a  check of  $45 drawn  on a finnish bank. Fill in the
  179.    form below and send it with you check. Send the check and
  180.    form to the address:
  181.      Martti Ylikoski
  182.      Poutuntie 3 A 7
  183.      SF-00400 Helsinki
  184.      Finland.
  185.  
  186.  
  187.  
  188.  
  189.            TOOLS/2 REGISTRATION FORM
  190.  
  191.  
  192.    Name:____________________________________________________
  193.  
  194.  
  195.    Address:
  196.    _________________________________________________________
  197.  
  198.    _________________________________________________________
  199.  
  200.    _________________________________________________________
  201.  
  202.    _________________________________________________________
  203.  
  204.    Telephone:_______________________________________________
  205.  
  206.    TOOLS/2 version:_________________________________________
  207.  
  208.  
  209.  
  210.    Unistalling.
  211.  
  212.    If you  are not  satisfied with  TOOLS/2,  you  can  also
  213.    uninstall it.  There are two files on the first diskette.
  214.    uninstal.cmd for OS/2 and uninstal.bat for DOS. Note that
  215.    there is  only one l at the end. To uninstall type at the
  216.    command prompt:
  217.    a:unistal
  218.    and follow the directions.
  219.  
  220.  
  221.    Disclaimer.
  222.  
  223.    THE SOFTWARE  IS PROVIDED  "AS IS"  AND I  DISCLAIMS  ALL
  224.    WARRANTIES WITH  REGARD TO  THIS SOFTWARE,  INCLUDING ALL
  225.    IMPLIED WARRANTIES  OF MERCHANTABILITY AND FITNESS. IN NO
  226.    EVENT  SHALL  I  BE  LIABLE  FOR  ANY  SPECIAL,  DIRECT,
  227.    INDIRECT,  OR  CONSEQUENTIAL  DAMAGES  OR  ANY  DAMAGES
  228.    WHATSOEVER RESULTING  FROM LOSS  OF USE, DATA OR PROFITS,
  229.    WHETHER IN  AN ACTION  OF CONTRACT,  NEGLIGENCE OR  OTHER
  230.    TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
  231.    USE OR PERFORMANCE OF THIS SOFTWARE.
  232.  
  233.  
  234. ΓòÉΓòÉΓòÉ 3. Feedback.txt ΓòÉΓòÉΓòÉ
  235.  
  236.  
  237.  
  238.  
  239.               FEEDBACK FORM
  240.  
  241.  
  242.    This questionnairy  is provided by the author in order to
  243.    collect feedback  information from  users. What's bad and
  244.    what's good  about this  package. You  can also  send  in
  245.    completely free  format letter  telling you  impressions,
  246.    bug findings and ideas for future development.
  247.  
  248.    All  comments  are  welcome,  both  from  registered  and
  249.    unregistered user. When completed mail this questionnairy
  250.    to:
  251.  
  252.    Martti Ylikoski
  253.    Poutuntie 3 A 7
  254.    SF-00400 Helsinki
  255.    Finland
  256.  
  257.  
  258.  
  259.    Installation procedure.
  260.    Did you succeed in your first installation?
  261.  
  262.    If not, why not?
  263.  
  264.  
  265.  
  266.  
  267.  
  268.    How could  the installation be improved? + Other comments
  269.    ?
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.    Demonstration programs.
  277.    Could you run the demonstation programs at firs attempt?
  278.  
  279.    Why not ?
  280.  
  281.  
  282.  
  283.  
  284.  
  285.    What do  you think  in general  about the  demonstaration
  286.    programs? Was something missing? Was something misleading
  287.    ? New ideas ?
  288.  
  289.  
  290.  
  291.  
  292.  
  293.    Documentations.
  294.    Have you noticed any direct errors in the documentation?
  295.  
  296.    If yes, please specify?
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.    Are some parts of the documentation misleading?
  304.  
  305.    What parts ?
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.    How could  the documentation  be improved ? (expect for a
  315.    complete rewrite :-)
  316.  
  317.  
  318.  
  319.  
  320.  
  321.    Tools.
  322.    Are some of the tools failing to work ?
  323.  
  324.    What tools and in what way ? You may write as much as you
  325.    want to separe pages, if the space is not big enough.
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.    Future.
  350.  
  351.    What kind  of tools  would you  like to see in TOOLS/2 in
  352.    future? Graphical  OS/2 2.0  tools, more traditional UNIX
  353.    tools ? Games ? Better DOS support ? Shall we continue in
  354.    C, or should the new tools be in C++ ?
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.    Do you have any new options that you would like to see in
  366.    some of the current tools ? What are they ?
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.    Do you have ideas for any new tools ?
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390. ΓòÉΓòÉΓòÉ 4. Alphabetical list of commands. ΓòÉΓòÉΓòÉ
  391.  
  392. This section contains the alphabetical list of all the tools in TOOLS/2. 
  393.  
  394.  
  395. ΓòÉΓòÉΓòÉ 4.1. Alarm - Show alarm at specified time. ΓòÉΓòÉΓòÉ
  396.  
  397.  
  398.                        ALARM [OS/2 ONLY]
  399.  
  400.    NAME ALARM  - Show  an alarm  to the  user at a specified
  401.    time.
  402.  
  403.    SYNTAX
  404.  
  405.    alarm [/H | /?]OR
  406.    alarm time "message with \n between lines" OR
  407.    alarm /F alarm-file
  408.  
  409.    USAGE
  410.  
  411.    Alarm is  used to  show the  user alarm popup messages at
  412.    requested times.  You can  for example use it to create a
  413.    to-do list  for each  day, and  have  it  remond  you  of
  414.    activities.
  415.  
  416.    Alarm can  read the  time and  message  either  from  the
  417.    command line  or from  a file.  The format  supported for
  418.    time are  the sama as for the at-command. First format is
  419.    given in  hh:mm:ss and  the second  format is  +hh:mm:ss,
  420.    where time is relative to the current time.
  421.  
  422.  
  423.    Different lines  of the  messages are  separated with \n.
  424.    This is  true both  for messages  on the command line and
  425.    for messages in a file.
  426.  
  427.    EXAMPLES
  428.    1) Alarm me at 14:00 about a meeting
  429.    detach alarm 13:45 "\nTime to leave for meeting!\n"
  430.  
  431.  
  432.    SEE ALSO
  433.    at, Alarm file format
  434.  
  435.  
  436. ΓòÉΓòÉΓòÉ 4.2. Alarm File Format ΓòÉΓòÉΓòÉ
  437.  
  438.  
  439.                  ALARM-FILE FORMAT [OS/2 ONLY]
  440.  
  441.    NAME ALARM  FILE FORMAT  - This  document  describes  the
  442.    alarm-commands file format
  443.  
  444.    SYNTAX
  445.  
  446.    # comment line
  447.    ; comment line
  448.    CONTINUE
  449.    QUIT
  450.    BREAK
  451.    time message
  452.    +time message
  453.  
  454.    USAGE
  455.  
  456.    Alarm can  be given  its arguments  in a  file.  You  can
  457.    comment out  lines by  preceding them with either # or ;-
  458.    characters. This  is an  easy way  to temporarily disable
  459.    some commands.
  460.  
  461.    The CONTINUE-command  is most  useful at  the end  of the
  462.    file. When  this command  is read,  the file  is  started
  463.    again from the beginning. You can use it situations where
  464.    the machine  is not  shut down for the night and you want
  465.    to have the same alarms every day.
  466.  
  467.    When the  QUIT or BREAK keywords are recognized, the file
  468.    is immediately closed and the alarm-command stopped.
  469.  
  470.    Two time  formats  are  supported.  The  first  list  the
  471.    absolute  time  in  hh:mm:ss  -format,  where  hh=hour,
  472.    mm=minute, ss=second.  The time  is parsed  from left  to
  473.    right. That is a two part time represents hh:mm and a one
  474.    part time represents hours only.
  475.  
  476.    The second  format is given relative to the current time.
  477.    This format is identical to the first format, except that
  478.    it starts with a plus (+).
  479.  
  480.    EXAMPLES
  481.    11:00:00\n\n Lunch!
  482.    13:00:00 Call George
  483.    17:00:00 \n\n The day is done.
  484.  
  485.  
  486.    SEE ALSO
  487.    until, at,
  488.  
  489.  
  490. ΓòÉΓòÉΓòÉ 4.3. At - Start a program at specified time. ΓòÉΓòÉΓòÉ
  491.  
  492.  
  493.                         AT [DUAL MODE]
  494.  
  495.    NAME AT - Start a program at a specified time.
  496.  
  497.    SYNTAX
  498.  
  499.    at OR
  500.    at time "command with parameters" OR
  501.    at /F at-file
  502.  
  503.    USAGE
  504.  
  505.    At is  used to start programs at a given time of the day.
  506.    It support  two time formats. The first list the absolute
  507.    time  in  hh:mm:ss  -format,  where  hh=hour,  mm=minute,
  508.    ss=second. The time is parsed from left to right. That is
  509.    a two  part time  represents hh:mm  and a  one part  time
  510.    represents hours only.
  511.  
  512.    The second  format is given relative to the current time.
  513.    This format is identical to the first format, except that
  514.    it starts with a plus (+).
  515.  
  516.    At can  also be  given a  list of  times and command in a
  517.    file. The  filename is given with the /F option. When the
  518.    command line  is empty, the at command reads its input by
  519.    default from the at.dat-file.
  520.  
  521.    EXAMPLES
  522.    1) Start dir command 10 seconds from now.
  523.    at +00:00:10 dir
  524.    2) Tell me to go to dinner a eleven o'clock.
  525.    at 11:00 "popup The time has come foor all good men to go
  526.    to the aid of their cafeteria."
  527.  
  528.  
  529.  
  530.    SEE ALSO
  531.    until, At file format
  532.  
  533.  
  534. ΓòÉΓòÉΓòÉ 4.4. At File Format ΓòÉΓòÉΓòÉ
  535.  
  536.  
  537.                   AT-FILE FORMAT [DUAL MODE]
  538.  
  539.    NAME AT  FILE FORMAT  - This  document describes  the at-
  540.    commands file format
  541.  
  542.    SYNTAX
  543.  
  544.    # comment line
  545.    ; comment line
  546.    CONTINUE
  547.    QUIT
  548.    BREAK
  549.    time command
  550.    +time command
  551.  
  552.    USAGE
  553.  
  554.    At can  be given its arguments in a file. You can comment
  555.    out  lines  by  preceding  them  with  either  #  or  ;-
  556.    characters. This  is an  easy way  to temporarily disable
  557.    some commands.
  558.  
  559.    The CONTINUE-command  is most  useful at  the end  of the
  560.    file. When  this command  is read,  the file  is  started
  561.    again from the beginning. You can use it situations where
  562.    the machine  is not  shut down for the night and you want
  563.    to run some commands every day.
  564.  
  565.    When the  QUIT or BREAK keywords are recognized, the file
  566.    is immediately closed and the at-command stopped.
  567.  
  568.    The file  formats are  identical to  the at-command.  Two
  569.    time formats  are supported.  The first list the absolute
  570.    time  in  hh:mm:ss  -format,  where  hh=hour,  mm=minute,
  571.    ss=second. The time is parsed from left to right. That is
  572.    a two  part time  represents hh:mm  and a  one part  time
  573.    represents hours only.
  574.  
  575.    The second  format is given relative to the current time.
  576.    This format is identical to the first format, except that
  577.    it starts with a plus (+).
  578.  
  579.    EXAMPLES
  580.    11:00:00 popup "\n\n Lunch!"
  581.    13:00:00 popup "Call George"
  582.    17:00:00 popup "\n\n The day is done."
  583.  
  584.  
  585.    SEE ALSO
  586.    until, at
  587.  
  588.  
  589. ΓòÉΓòÉΓòÉ 4.5. Bell - Make an audible sound on the speaker. ΓòÉΓòÉΓòÉ
  590.  
  591.  
  592.                        BELL [DUAL MODE]
  593.  
  594.    NAME BELL - Make an audible sound on the speaker.
  595.  
  596.    SYNTAX
  597.  
  598.    bell [frequency duration]* [/NOD] OR
  599.    bell -F file OR
  600.    bell /H | /?
  601.  
  602.    USAGE
  603.  
  604.    Bell is  used to  play a  tune of the given frequency and
  605.    duration on  the speaker.  It can  be given multiple such
  606.    pairs on  the command line or the pairs can be given in a
  607.    file. If  the parameters are in a file, each pair must be
  608.    on a separate line.
  609.  
  610.    Bell can  be given  a default frequency and duration with
  611.    environment variables  BELLFREQ and  BELLDUR. If  bell is
  612.    started without  parameters given,  it  uses  the  values
  613.    given in  these environment variables. If either of these
  614.    values or  both are  missing, and bell is started without
  615.    parameters, it  tries to  read values  from the  standard
  616.    input. This can be forced also with the /NOD-option, when
  617.    environemt variables are set.
  618.  
  619.    SEE ALSO
  620.  
  621.  
  622. ΓòÉΓòÉΓòÉ 4.6. Blank - Blank the screen. ΓòÉΓòÉΓòÉ
  623.  
  624.  
  625.                        BLANK [OS/2 ONLY]
  626.  
  627.    NAME BLANK - Blank the screen.
  628.  
  629.    SYNTAX
  630.  
  631.    blank
  632.  
  633.    USAGE
  634.  
  635.    BLANK can  be used  to blank to screen. With servers this
  636.    saves the  screen phosphor  from overburning.  There is a
  637.    similar program  BLANKER, which  runs as  a  monitor  and
  638.    automatically blanks  the screen,  when no  activity from
  639.    the keyboard  has  been  detected  for  a  given  period.
  640.    However BLANK  must be  run manually to blank the screen.
  641.    It is  meant to  be used in machines with no extra memory
  642.    or processing capasity to spare (BALNKER uses quite a few
  643.    threads).
  644.  
  645.    Set BLANK as a program item to some of your groups. Every
  646.    time you  leave the  machine you  must remember to double
  647.    click on  that icon.  Only then it will save your display
  648.    from overburn.
  649.  
  650.    Press any key to restore display.
  651.  
  652.    SEE ALSO
  653.    blanker
  654.  
  655.  
  656. ΓòÉΓòÉΓòÉ 4.7. Blanker - Screen saver program. ΓòÉΓòÉΓòÉ
  657.  
  658.  
  659.                       BLANKER [OS/2 ONLY]
  660.  
  661.    NAME BLANKER -Screen saver program.
  662.  
  663.    SYNTAX
  664.  
  665.    detach blanker [seconds]
  666.  
  667.    USAGE
  668.  
  669.    Blanker is  used to  automatically blank the screen after
  670.    the specified amount of seconds has elapsed and there has
  671.    been no  activity on  the machine.  Blanking  the  screen
  672.    saves the screen phosphor from overburning.
  673.  
  674.    The seconds option of BLANKER sets the amount of time the
  675.    program waits  before blanking  the screen.  Pressing any
  676.    key will restore the screen.
  677.  
  678.    You can start the screen blanking immediately by pressing
  679.    ALT and  B simultenously.  Blanker can  be  removed  with
  680.    pressing Control and F10 simultenously.
  681.  
  682.    BUGS
  683.    There  are  no  signon  and  signoff  messages.  It  is
  684.    impossible  to  change  the  keysequences  required.  The
  685.    amount of screen groups to which blanker registers itself
  686.    cannot be  given. These  issues will  be adressed  in the
  687.    next release.
  688.  
  689.    Blanker does  not monitor the PM-screen group. A separate
  690.    PM-screen blanker is required in the near future.
  691.  
  692.  
  693.    SEE ALSO
  694.    blank
  695.  
  696.  
  697. ΓòÉΓòÉΓòÉ 4.8. Border - Change the border colors. ΓòÉΓòÉΓòÉ
  698.  
  699.  
  700.            BORDER [DUAL MODE, NOT WINDOW COMPATIBLE]
  701.  
  702.    NAME BORDER - changes the border color.
  703.  
  704.  
  705.    SYNTAX
  706.  
  707.    border
  708.    [BLACK|RED|GREEN|YELLOW|BLUE|MAGENTA|CYAN|WHITE|DEFAULT]
  709.    [LIGHT_BLACK|
  710.    LIGHT_RED|LIGHT_GREEN|LIGHT_YELLOW|LIGHT_BLUE|LIGHT_MAGEN
  711.    TA|LIGHT_CYAN|LIGHT_GREY]
  712.    [DARK_BLACK|
  713.    DARK_RED|DARK_GREEN|DARK_YELLOW|DARK_BLUE|DARK_MAGENTA|DA
  714.    RK_CYAN|DARK_GREY]
  715.  
  716.    USAGE
  717.  
  718.    Border is  used to change the border color. Border is the
  719.    outside of  the actual  screen, which  can be written to.
  720.    Border accepts  the same colors as color or clear, but it
  721.    can also  be  given  an  integer,  which  represents  the
  722.    desired attribute.  These integers can be in the range 0-
  723.    63. You  can give other integer also, but they always map
  724.    to one of the 64 possible colors.
  725.  
  726.    SEE ALSO
  727.    color, clear, normal
  728.  
  729.  
  730. ΓòÉΓòÉΓòÉ 4.9. Cat - Concatenate files to the display. ΓòÉΓòÉΓòÉ
  731.  
  732.  
  733.                         CAT [DUAL MODE]
  734.  
  735.    NAME CAT - conCATenate files to standard output.
  736.  
  737.    SYNTAX
  738.  
  739.    CAT  [drive(s)]  [/NOD]  [+A|+R|+S|+H|+D|]  [/P  |/H
  740.    |/?][file(s)]
  741.  
  742.  
  743.    USAGE
  744.  
  745.    CAT is  a similar  tool to the standard TYPE command, but
  746.    it can search for files through a directory structure and
  747.    from multiple volumes.
  748.  
  749.    Dy  default  CAT  display  files  only  on  the  current
  750.    directory. With  the /S option you can search through the
  751.    three hierarchy starting from current directory.
  752.  
  753.    You can  list at the beginning of the command line drives
  754.    and/or directories  and CAT  will start  its search  from
  755.    these places.  E.g. cat  c: d:\source  *.c *.h  /S, would
  756.    display all  *.c and  *.h-files  from  c:-drives  current
  757.    directory and d:-drices \source-directory and below.
  758.  
  759.    You can  also include  attributes in the search criteria.
  760.    By default  CAT finds  files with  no bits, attribute bit
  761.    and/or readonly  bit set.  You  can  specify  other  file
  762.    attributes with  the +-options.  The /NOD  (=NO Default)-
  763.    switch will  turn off  default finding  rules and you can
  764.    the explicitly set the file types you want to find - e.g.
  765.    'CAT /NOD  +H *.*'  would display  only  files  with  the
  766.    hidden bit on and no other bits on.
  767.  
  768.    With the /P option, CAT will pause after each screenful.
  769.  
  770.  
  771.    The following options are recongnized:
  772.    +H include also hidden files.
  773.    +S include system files
  774.    +R include read-only files
  775.    +A include files with attribute-bit.
  776.    +D include directories.
  777.    +N include  normal files.  This is  the  default.  Normal
  778.    files include  files with read-only or archive or no bits
  779.    at all set.
  780.    /NOD No  Default. Do  not include  any files  by default.
  781.    Some combination of attributes must be given.
  782.    /S = Include subdirectories also.
  783.    /P = Pause, stop after each screenful of text.
  784.    /?,/H = Help, show a small help screen.
  785.  
  786.    SEE ALSO
  787.    scan, du, delq, ff
  788.  
  789.  
  790. ΓòÉΓòÉΓòÉ 4.10. Clear - Clear the screen. ΓòÉΓòÉΓòÉ
  791.  
  792.  
  793.                        CLEAR [DUAL MODE]
  794.  
  795.    NAME CLEAR - clear the display and optionally set colors
  796.  
  797.  
  798.    SYNTAX
  799.  
  800.    clear [prefix]basiccolor on [prefix]basiccolor
  801.    where
  802.      prefix = LIGHT_ | DARK_
  803.      basiccolor =
  804.      [BLACK|RED|GREEN|YELLOW|BLUE|MAGENTA|CYAN|WHITE|DEFA
  805.      ULT]
  806.  
  807.    USAGE
  808.  
  809.    Clear is used to clear the display and optionally set the
  810.    colors of  the display.  It's parameters  are similar  to
  811.    color. E.g:
  812.    CLEAR green on black
  813.    would clear  the screen and set the colors of the display
  814.    to green letters on black background.
  815.  
  816.  
  817.    Clear uses  ANSI escape  sequences. If the ANSI sequences
  818.    are off,  clear sets  ANSI on  for the  duration  of  the
  819.    process and restores the original situation at the end of
  820.    the process. Unlikely to color-command, the colors change
  821.    every time.  Still CLS-command  seems to  reset colors to
  822.    their default values (white on black) if ANSI is off.
  823.  
  824.    SEE ALSO
  825.    color, normal
  826.  
  827.  
  828. ΓòÉΓòÉΓòÉ 4.11. Color - Sets the screen colors. ΓòÉΓòÉΓòÉ
  829.  
  830.  
  831.                        COLOR [DUAL MODE]
  832.  
  833.    NAME COLOR - set the colors on the display
  834.  
  835.  
  836.    SYNTAX
  837.  
  838.    color [prefix]basiccolor on [prefix]basiccolor
  839.    where
  840.      prefix = LIGHT_ | DARK_
  841.      basiccolor =
  842.      [BLACK|RED|GREEN|YELLOW|BLUE|MAGENTA|CYAN|WHITE|DEFA
  843.      ULT]
  844.  
  845.    USAGE
  846.  
  847.    Color is  used to set the foreground and background color
  848.    of a  session. It  affects only  the session, where it is
  849.    run. If  you want  to set the colors in all sessions, you
  850.    must create  a command file, where the color-command with
  851.    desired parameters  is run  and then you must modify your
  852.    config.sys. If  you set  as the  last parameter  of  your
  853.    protshell-line the  following "  /K cmd-file",  OS/2 will
  854.    run the cmd-file every time you start a new session. Note
  855.    that starting  an  OS/2  Window  does  not  start  a  new
  856.    session.
  857.  
  858.    Color uses  Vio-calls except  in OS/2  Window, where  the
  859.    call used  for changing  colors does  not work.  In  OS/2
  860.    Window color  uses ANSI-escape sequences, which limit its
  861.    capabilities to  the basic colors. E.g. RED is supported,
  862.    but not LIGHT_RED or DARK_RED.
  863.  
  864.    Color uses  ANSI escape  sequences. If the ANSI sequences
  865.    are off,  color sets  ANSI on  for the  duration  of  the
  866.    program and restores the original situation at the end of
  867.    the program.  OS/2 seems  to work  in a random fashion in
  868.    this kind  of situations.  Sometimes  the  colors  change
  869.    sometimes not. The color sets the current cursor position
  870.    to the  bottom of  the screen,  because with  my  version
  871.    (1.21) the  ANSI- sequences  worked every  time, when the
  872.    cursor was at the bottom of the screen. Still CLS-command
  873.    seems to  reset all color to their default value, if ANSI
  874.    is off.
  875.  
  876.    SEE ALSO
  877.    clear, normal
  878.  
  879.  
  880. ΓòÉΓòÉΓòÉ 4.12. Cursor - Position the cursor. ΓòÉΓòÉΓòÉ
  881.  
  882.  
  883.                       CURSOR [DUAL MODE]
  884.  
  885.    NAME CURSOR - Position the cursor on the screen.
  886.  
  887.  
  888.    SYNTAX
  889.  
  890.    cursor row col [text]
  891.  
  892.  
  893.    USAGE
  894.  
  895.    Cursor is  used to  position the cursor on the screen and
  896.    show some  text there.  It is  given the  row and  column
  897.    coordinates. The text component can be missing.
  898.  
  899.    SEE ALSO
  900.  
  901.  
  902. ΓòÉΓòÉΓòÉ 4.13. Cuthuge - Cut a huge file into smaller pieces. ΓòÉΓòÉΓòÉ
  903.  
  904.  
  905.                       CUTHUGE [DUAL MODE]
  906.  
  907.    NAME  CUTHUGE  -  Cut  a  huge  file  into  smaller  more
  908.    manageable pieces.
  909.  
  910.    SYNTAX
  911.  
  912.    cuthuge  [-lines]  [/BIN]  [/B  basename]  |  [/H  |  /?]
  913.    [files(s)]
  914.  
  915.    USAGE
  916.  
  917.    CUTHUGE is  used to  cut a  big file into smaller pieces.
  918.    You might  want to  do this for example to cut a huge log
  919.    file into  smaller pieces for convenien viewing in a text
  920.    editor. The  default names  are of the form PARTXXXX.CUT,
  921.    where the  XXXX:s are consequtively groving numbers. E.g.
  922.    PART0000.CUT, PART0001.CUT ...
  923.  
  924.    By default  CUTHUGE operates  in text mode, but with /BIN
  925.    it can  be switched  into binary  mode. The -lines option
  926.    gives the  number of  lines written  to each file in text
  927.    mode. In  binary mode it gives the size of the parts file
  928.    in bytes. The minimum for this is 1024 and the default is
  929.    32 K.
  930.  
  931.    When started  without any  parameters, the  cuthuge reads
  932.    its input from the command line. The special character '-
  933.    ' can  also be  used on  the command  line  to  mean  the
  934.    standard input.  CUTHUGE can  also be given many files on
  935.    its command  line. It  starts each  new file  with a  new
  936.    parts file.
  937.  
  938.  
  939.    SEE ALSO:
  940.  
  941.  
  942. ΓòÉΓòÉΓòÉ 4.14. Delq - Delete a file with query. ΓòÉΓòÉΓòÉ
  943.  
  944.  
  945.                        DELQ [DUAL MODE]
  946.  
  947.    NAME DELQ - Delete files with query.
  948.  
  949.    SYNTAX
  950.  
  951.    DELQ   [Drive(s)]   [File(s)]   [/NOD|/TEST|/S|/H|/?]]
  952.    [+A|+R|+S|+H|+D|+A]
  953.  
  954.  
  955.    USAGE
  956.  
  957.    DELQ deletes  specified files with query - that is before
  958.    each file is deleted, user is required to confirm delete.
  959.  
  960.    DELQ can  be given  a list  of drives  e.g  C:  D:.  DELQ
  961.    searches these  drives for  the given  files. Each  drive
  962.    specifier can  contain also  a  directory  specifier  e.g
  963.    c:\test,  then  DELQ  searches  starting  from  the  test
  964.    directory. Normally  DELQ  starts  its  search  from  the
  965.    default directory.
  966.  
  967.    Normally DELQ  finds files  with attribute  bit, readonly
  968.    bit  or  no  bits  set.  You  can  disable  the  default
  969.    attributes with the /NOD (=No Default) switch.
  970.  
  971.    Files are  specified using normal OS/2 rules with ? and *
  972.    acting as wild cards.
  973.  
  974.    There is a /TEST-switch, which shows the delete commands,
  975.    but does  not execute  them. It  is useful  for verifying
  976.    that you  have specified the correct files on the command
  977.    line.
  978.  
  979.    With the /S -option DU shows also all subdirectories.
  980.  
  981.    The following options are recongnized:
  982.    +H include also hidden files.
  983.    +S include system files
  984.    +R include read-only files
  985.    +A include files with attribute-bit.
  986.    +D include directories (does not make too much sense with
  987.    SCAN).
  988.    +N include  normal files.  This is  the  default.  Normal
  989.    files include  files with read-only or archive or no bits
  990.    at all set.
  991.    /NOD No  Default. Do  not include  any files  by default.
  992.    SOme combination of attributes must be given.
  993.    /TEST Shows delete commands, but does not execute them.
  994.    /S = Include subdirectories also.
  995.  
  996.  
  997.    with /S  -option also  subdirectories are included in the
  998.    search  for  specified  files.  DELQ  does  not  delete
  999.    directories.
  1000.  
  1001.    With /TEST-option  DELQ shows  the files,  that could  be
  1002.    deleted. No files are affected.
  1003.  
  1004.    SEE ALSO
  1005.    scan, ff
  1006.  
  1007.  
  1008. ΓòÉΓòÉΓòÉ 4.15. Dirs - Show directories pushed to the stack. ΓòÉΓòÉΓòÉ
  1009.  
  1010.  
  1011.                        DIRS [DUAL MODE]
  1012.  
  1013.    NAME DIRS  - Show the contents of the drive and directory
  1014.    stack.
  1015.  
  1016.    SYNTAX
  1017.  
  1018.    dirs [-q|/q]
  1019.  
  1020.    USAGE
  1021.  
  1022.    With pushd  you can  push the current drive and directory
  1023.    onto directory  stack. You  can then  move freely between
  1024.    directories.  Popd  will  restore  the  top  drive  and
  1025.    directory from  the stack.  With the dirs command you can
  1026.    see what  entries are in the stack. The stack will always
  1027.    contain the  entry "." - that is the current directory as
  1028.    the last  element. Each  session has  separate stack. You
  1029.    can only retrieve drive and directroy combinations, which
  1030.    have been pushed in this session.
  1031.  
  1032.    All three  commands use  a server  to maintain the stack.
  1033.    This server  is dirserv.exe. You can start it manually in
  1034.    a separate session or detach it, so that it belongs to no
  1035.    screen  group.  Nevertheless  all  three  commands  start
  1036.    dirserv  automatically,  if  it  has  not  been  started
  1037.    previously. You can use the -Q (or /Q) option to stop the
  1038.    directory stack  server. This is needed especially if the
  1039.    server is  detached. Under  DOS the  drive and  directory
  1040.    information is  stored in  a file.  The default  for this
  1041.    file is  c:\dirserv.dat. You  can change  it however with
  1042.    the DIRSERV-enviroment variable.
  1043.  
  1044.  
  1045.    SEE ALSO
  1046.    pusd, popd, dirserv,
  1047.  
  1048.  
  1049. ΓòÉΓòÉΓòÉ 4.16. Dirserv - Directory stack server. ΓòÉΓòÉΓòÉ
  1050.  
  1051.  
  1052.                       DIRSERV [OS/2 ONLY]
  1053.  
  1054.    NAME DIRSERV - Drive and directory stack server.
  1055.  
  1056.    SYNTAX
  1057.  
  1058.    dirserv
  1059.  
  1060.    USAGE
  1061.  
  1062.    With pushd  you can  push the current drive and directory
  1063.    onto directory  stack. You  can then  move freely between
  1064.    directories.  Popd  will  restore  the  top  drive  and
  1065.    directory from  the stack.  With the dirs command you can
  1066.    see what  entries are in the stack. The stack will always
  1067.    contain the  entry "." - that is the current directory as
  1068.    the last  element. Each  session has  separate stack. You
  1069.    can only retrieve drive and directroy combinations, which
  1070.    have been pushed in this session.
  1071.  
  1072.    All three  commands use  a server  to maintain the stack.
  1073.    This server  is dirserv.exe. You can start it manually in
  1074.    a separate session or detach it, so that it belongs to no
  1075.    screen  group.  Nevertheless  all  three  commands  start
  1076.    dirserv  automatically,  if  it  has  not  been  started
  1077.    previously. You can use the -Q (or /Q) option to stop the
  1078.    directory stack  server. This is needed especially if the
  1079.    server is  detached. Under  DOS the  drive and  directory
  1080.    information is  stored in  a file.  The default  for this
  1081.    file is  c:\dirserv.dat. You  can change  it however with
  1082.    the DIRSERV-enviroment variable.
  1083.  
  1084.  
  1085.    SEE ALSO
  1086.    pusd, popd, dirs,
  1087.  
  1088.  
  1089. ΓòÉΓòÉΓòÉ 4.17. Diskfree - Show free disk space. ΓòÉΓòÉΓòÉ
  1090.  
  1091.  
  1092.                      DISKFREE [DUAL MODE]
  1093.  
  1094.    NAME DISKFREE  - Show  the amount of free and total space
  1095.    on a given disk.
  1096.  
  1097.    SYNTAX
  1098.  
  1099.    diskfree [drive(s)] | [/H | /? | /R]
  1100.  
  1101.    USAGE
  1102.  
  1103.    Diskfree shows  the amount  of free working space and the
  1104.    amount of  total available  space on the given drives. If
  1105.    no drive  is given,  it displays the amount of free/total
  1106.    space on the current drive.
  1107.  
  1108.    OPTIONS
  1109.  
  1110.    Following options are recognized:
  1111.      - /R =  Report. Displays results in a format similar
  1112.      to  LANMAN.INI  or  other  Microsoft  configuration
  1113.      files.
  1114.      - /?,/H = Help. Displays a short help.
  1115.  
  1116.    SEE ALSO
  1117.  
  1118.  
  1119. ΓòÉΓòÉΓòÉ 4.18. Dos2unix - Convert text files between DOS and UNIX. ΓòÉΓòÉΓòÉ
  1120.  
  1121.  
  1122.                      DOS2UNIX [DUAL MODE]
  1123.  
  1124.    NAME DOS2UNIX  - Translate  files  between  DOS/OS/2  and
  1125.    UNIX.
  1126.  
  1127.  
  1128.    SYNTAX
  1129.  
  1130.    DOS2UNIX [file1 [file2]] [/? | /H]
  1131.  
  1132.    USAGE
  1133.    DOS2UNIX is  used to translate files between DOS/OS/2 and
  1134.    UNIX text  formats. In  UNIX each  line ends with a line-
  1135.    feed character. IN DOS/OS/2 each line ends with carriage-
  1136.    return and  line-feed chars.  Therefore if  you copy file
  1137.    from DOS, there is an unnecessary character at the end of
  1138.    each line.  If file2  is missing, DOS2UNIX outputs to the
  1139.    standard output.  If both  file1 and  file2  are  missing
  1140.    DOS2UNIX reads  from the standard input and writes to the
  1141.    standard output.
  1142.  
  1143.    SEE ALSO
  1144.    unix2dos
  1145.  
  1146.  
  1147. ΓòÉΓòÉΓòÉ 4.19. Du - Show disk usage for files/directories. ΓòÉΓòÉΓòÉ
  1148.  
  1149.  
  1150.                         DU [DUAL MODE]
  1151.  
  1152.    NAME DU - Show disk usage.
  1153.  
  1154.    SYNTAX
  1155.  
  1156.    DU [Drive(s)]  [Files(s)]  [/NOD|/S]  [+A|+R|+S|+H|+D|+A]
  1157.    [/H | /?]
  1158.  
  1159.  
  1160.    USAGE
  1161.  
  1162.    DU shows  how many  bytes each  specified file takes, its
  1163.    attributes, how much the files in the same directory take
  1164.    and  finally  how  much  all  the  specified  files  take
  1165.    together. The  amount shown is the actual number of bytes
  1166.    written to  the file. Since OS/2 reserves space in blocks
  1167.    (even a  file of  1 byte takes one block), the amount the
  1168.    files take from the total amount of free space is bigger.
  1169.  
  1170.    DU can  be given  a list of drives e.g C: D:. DU searches
  1171.    these drives  for the  given files.  Each drive specifier
  1172.    can contain  also a directory specifier e.g c:\test, then
  1173.    DU searches starting from the test directory. Normally DU
  1174.    starts its search from the default directory.
  1175.  
  1176.    Normally DU  finds files with attribute bit, readonly bit
  1177.    or no  bits set.  You can  disable the default attributes
  1178.    with the /NOD (=No Default) switch.
  1179.  
  1180.    Files are  specified using normal OS/2 rules with ? and *
  1181.    acting as wild cards.
  1182.  
  1183.    There is  a /TEST-switch,  which is  not too sensible for
  1184.    DU.
  1185.  
  1186.    With the /S -option DU shows also all subdirectories.
  1187.  
  1188.    The following options are recongnized:
  1189.    +H include also hidden files.
  1190.    +S include system files
  1191.    +R include read-only files
  1192.    +A include files with attribute-bit.
  1193.    +D include directories (does not make too much sense with
  1194.    SCAN).
  1195.    +N include  normal files.  This is  the  default.  Normal
  1196.    files include  files with read-only or archive or no bits
  1197.    at all set.
  1198.    /NOD No  Default. Do  not include  any files  by default.
  1199.    SOme combination of attributes must be given.
  1200.    /TEST Show no files.
  1201.    /S = Include subdirectories also.
  1202.  
  1203.    SEE ALSO
  1204.    scan, ff
  1205.  
  1206.  
  1207. ΓòÉΓòÉΓòÉ 4.20. Ff - Find files. ΓòÉΓòÉΓòÉ
  1208.  
  1209.  
  1210.                         FF [DUAL MODE]
  1211.  
  1212.    NAME FF - Find files.
  1213.  
  1214.    SYNTAX
  1215.  
  1216.    FF [drive(s)]  [/NOD]  [+A|+R|+S|+H|+D|]  [/P  |  /V  |/H
  1217.    |/?][file(s)]
  1218.  
  1219.  
  1220.    USAGE
  1221.  
  1222.    FF can  be used  to locate quickly files from one or many
  1223.    volumes. FF is given filenames using normal OS/2 wildcard
  1224.    rules. By  default FF  seaches all directories on current
  1225.    drive. You  can however  specify  different  volumes  and
  1226.    different directories  for  your  seach.  You  must  then
  1227.    specify these  drives and  directories at the beginnig of
  1228.    the command  line. E.g.  'FF .  A:\test *.c' , will seach
  1229.    the current  directory  on  the  current  drive  and  all
  1230.    directories below  it and  the  test  directory  and  all
  1231.    directories below  it on  A-drive for  all c-files.  Note
  1232.    that FF  changes current  drives and  directories  as  it
  1233.    processes the  command line.  Therefore  'FF  A:\test  .'
  1234.    would not work as expected.
  1235.  
  1236.    By default  FF find  files with  no bits,  attribute  bit
  1237.    and/or readonly  bit set.  You  can  specify  other  file
  1238.    attributes with  the +-options.  The /NOD  (=NO Default)-
  1239.    switch will  turn off  default finding  rules and you can
  1240.    the explicitly set the file types you want to find - e.g.
  1241.    'FF /NOD  +D' would  find only directories - normally all
  1242.    normal files  plus directories would be found without the
  1243.    /NOD.
  1244.  
  1245.    The following options are recongnized:
  1246.    +H include also hidden files.
  1247.    +S include system files
  1248.    +R include read-only files
  1249.    +A include files with attribute-bit.
  1250.    +D include directories.
  1251.    +N include  normal files.  This is  the  default.  Normal
  1252.    files include  files with read-only or archive or no bits
  1253.    at all set.
  1254.    /NOD No  Default. Do  not include  any files  by default.
  1255.    SOme combination of attributes must be given.
  1256.    /S = Include subdirectories also.
  1257.  
  1258.  
  1259.    SEE ALSO
  1260.    scan, du
  1261.  
  1262.  
  1263. ΓòÉΓòÉΓòÉ 4.21. Head - Display the beginning of a file.  ΓòÉΓòÉΓòÉ
  1264.  
  1265.  
  1266.                        HEAD [DUAL MODE]
  1267.  
  1268.    NAME HEAD  - Displays  the first  beginning lines  from a
  1269.    file.
  1270.  
  1271.  
  1272.    SYNTAX
  1273.  
  1274.    head [-count | - | /H | /?] file(s)
  1275.  
  1276.    USAGE
  1277.  
  1278.    Head is  used to display the very first lines from a text
  1279.    file. The  -count argument  specifies how  many lines are
  1280.    displayed.  If  it  is  omitted,  10  first  lines  are
  1281.    displayed. Head  dispays only as many character from each
  1282.    line as  there are  colums in  the  current  video  mode.
  1283.    Normally this is 80. The rest of the line is omitted. The
  1284.    special character  "-" means that the lines are read from
  1285.    the standard input.
  1286.  
  1287.  
  1288.    SEE ALSO
  1289.    tail, pg
  1290.  
  1291.  
  1292. ΓòÉΓòÉΓòÉ 4.22. Jd - Jump to a directory. ΓòÉΓòÉΓòÉ
  1293.  
  1294.  
  1295.                         JD [DUAL MODE]
  1296.  
  1297.    NAME JD - Jump to a directory.
  1298.  
  1299.  
  1300.    SYNTAX
  1301.  
  1302.    JD directory
  1303.  
  1304.  
  1305.    USAGE
  1306.  
  1307.    JD enables  you to  jump quickly  to a  directory without
  1308.    giving the  full pathname. E.g. 'JD DE' could move you to
  1309.    the directory  \WINDOWS\DESIGNER in the current drive (if
  1310.    you had that kind of a directory). You can also include a
  1311.    drive specifier.  E.G D:DE,  would search for a directory
  1312.    beginning with  DE from  drive d:.  Both full and partial
  1313.    directory names can be given.
  1314.  
  1315.    JD has the following known "features". It always jumps to
  1316.    the first directory with the matching beginning. There is
  1317.    now way  to continue  the search  for a  next match or to
  1318.    select between  matching directory  names. JD tends to be
  1319.    quite slow.
  1320.  
  1321.  
  1322.    SEE ALSO
  1323.  
  1324.  
  1325. ΓòÉΓòÉΓòÉ 4.23. Kbd - display codes generated by the keyboard. ΓòÉΓòÉΓòÉ
  1326.  
  1327.  
  1328.                         KBD [DUAL MODE]
  1329.  
  1330.    NAME KBD  - Display  charactercodes, scancodes  and flags
  1331.    generated by the keyboard hardware.
  1332.  
  1333.  
  1334.    SYNTAX
  1335.  
  1336.    kbd
  1337.  
  1338.    USAGE
  1339.  
  1340.    KBD is  used to display the character code, scan code and
  1341.    different flags  generated by  the keyboard  hardware. It
  1342.    can be  used to  find out,  what scan and character codes
  1343.    special keyboard  keys generate.  E.g. function keys etc.
  1344.    You can  use  these  values  then  with  KEY  to  emulate
  1345.    keyboard input or with BLANKER to change the trigger key.
  1346.  
  1347.  
  1348.    SEE ALSO
  1349.    key, blanker
  1350.  
  1351.  
  1352. ΓòÉΓòÉΓòÉ 4.24. Key - Put character to the keyboard buffer. ΓòÉΓòÉΓòÉ
  1353.  
  1354.  
  1355.                         KEY [OS/2 ONLY]
  1356.  
  1357.    NAME KEY - Put the arguments onto the keyboard buffer.
  1358.  
  1359.    SYNTAX
  1360.  
  1361.    key arguments | \scancode,charcode | \charcode
  1362.  
  1363.    USAGE
  1364.  
  1365.    Key is  used  to  emulate  a  user.  It  puts  the  given
  1366.    arguments onto the keyboard buffer. This is equivalent to
  1367.    the situation,  where a  user had typed the same commands
  1368.    from keyboard.  You can  specify the argumets using three
  1369.    different syntaxes. If the argument does not start with a
  1370.    backslash charater  '\', key  pushes characters  from the
  1371.    command line  to the  keyboard buffer  treating  them  as
  1372.    characters -  e.g key dir, would push the word dir to the
  1373.    keyboard buffer.
  1374.  
  1375.    If the  argument starts  with backslash  and contains two
  1376.    components separated  with a  comma- e.g 'key \0,13', key
  1377.    sets the scancode to the first integer and character code
  1378.    to the  second integer. If the argument contains only one
  1379.    integer, key  sets the character code to that integer and
  1380.    sets the scan code to 0. Both representations are needed,
  1381.    because some  entries that  you  can  generate  from  the
  1382.    keyboard don't  have a character code at all. For example
  1383.    pressing ALT-F1,  would generate charactercode 0 and scan
  1384.    code 104 from my keyboard.
  1385.  
  1386.    If you  want to  have spaces  in the string you play out,
  1387.    you can put it inside double quotes. You can also use the
  1388.    character code  32, but  this is  less clear. Putting out
  1389.    spaces is  normal in  commands that consists of a command
  1390.    and some arguments.
  1391.  
  1392.    If you  want to  play out  the backlash  character as the
  1393.    first character, you must use its character code of 92.
  1394.  
  1395.    You can  use the KBD tool to see what scan code, characer
  1396.    code pairs your keyboard generates.
  1397.  
  1398.    EXAMPLES
  1399.    E.g. 'Key dir \13' will output the files from the current
  1400.    directory. 'Key  "START /C  dirserv" \13'  will  pay  the
  1401.    sequence START /C dirserv as a one command.
  1402.  
  1403.  
  1404.    SEE ALSO
  1405.  
  1406.  
  1407. ΓòÉΓòÉΓòÉ 4.25. Keylocks - Change the state of the locks keys (NUM LOCK etc). ΓòÉΓòÉΓòÉ
  1408.  
  1409.  
  1410.                      KEYLOCKS [OS/2 ONLY]
  1411.  
  1412.  
  1413.    NAME KEYLOCKS  - Set the mode of NUM LOCK or CAPS LOCK or
  1414.    SCROLL LOCK
  1415.  
  1416.  
  1417.    SYNTAX
  1418.  
  1419.    keylocks [/S | /C ] + [NUMLOCK | SCROLLLOCK | CAPSLOCK]
  1420.  
  1421.    USAGE
  1422.  
  1423.    KEYLOCKS can  be used  to set or to clear the NUM LOCK or
  1424.    the CAPS LOCK or the SCROLL LOCK. If it is called without
  1425.    any arguments  it shows  the shift state of the keyboard.
  1426.    It recignizes the following options:
  1427.      /C to clear the following shift state.
  1428.      /S to set the following shift state.
  1429.  
  1430.    EXAMPLE
  1431.  
  1432.    KEYLOCKS /C NUMLOCK
  1433.    clears the NUM LOCK mode.
  1434.  
  1435.    SEE ALSO
  1436.  
  1437.  
  1438. ΓòÉΓòÉΓòÉ 4.26. Keyspeed - Set the typematic rate of the keyboard. ΓòÉΓòÉΓòÉ
  1439.  
  1440.  
  1441.                      KEYSPEED [OS/2 ONLY]
  1442.  
  1443.    NAME KEYSPEED - Set the typematic rate of the keyboard.
  1444.  
  1445.  
  1446.    SYNTAX
  1447.  
  1448.    keyspeed  delay  (milliseconds)  rate  (characters-per-
  1449.    seconds)
  1450.  
  1451.    USAGE
  1452.  
  1453.    KEYSPEED sets  the typematic  rate of the keyboard. Delay
  1454.    is given  in milliseconds  and it  determines  the  delay
  1455.    before key  repeating starts. Rate is given in characters
  1456.    per second  and it  determines how  many characeters  are
  1457.    generated per  second. Setting the typematic rate affects
  1458.    all character  based sessions - Full Screen and Windowed.
  1459.    There is no way of showing the typematic values in effect
  1460.    since functions  to retrive  these values  have not  been
  1461.    documented.
  1462.  
  1463.  
  1464.    SEE ALSO
  1465.    key,
  1466.  
  1467.  
  1468. ΓòÉΓòÉΓòÉ 4.27. Kill - Kill a process. ΓòÉΓòÉΓòÉ
  1469.  
  1470.  
  1471.                        KILL [DUAL MODE]
  1472.  
  1473.    NAME KILL - Kill a process.
  1474.  
  1475.    SYNTAX
  1476.  
  1477.    kill process_id [/H | -?]
  1478.  
  1479.    USAGE
  1480.  
  1481.    Kill can  be used  to stop a process. You must first know
  1482.    the process identifier of it. You can see the process ids
  1483.    with the pstat command, which is included in OS/2 version
  1484.    1.2  and  upwards.  Unfortunately  these  are  show  in
  1485.    hexadecimal format. You can use the NUM tool to convert.
  1486.  
  1487.    SEE ALSO:
  1488.  
  1489.  
  1490.  
  1491. ΓòÉΓòÉΓòÉ 4.28. Mem - Show size of the largest contiguous block of memory. ΓòÉΓòÉΓòÉ
  1492.  
  1493.  
  1494.                         MEM [DUAL MODE]
  1495.  
  1496.    NAME MEM  - Show  the size  of the  largest free block of
  1497.    memory.
  1498.  
  1499.    SYNTAX
  1500.  
  1501.    mem [/R] | [/V] | [/H | /?]
  1502.  
  1503.    USAGE
  1504.  
  1505.    Mem shows  the size  of the largest free block of memory.
  1506.    Because OS/2  compacts memory  from time  to  time,  this
  1507.    gives a  rough estimate  of the  total available free RAM
  1508.    memory.
  1509.  
  1510.    Following options are recognized:
  1511.      - /R =  Report. It  is meant  to be used, if results
  1512.      are handled by a program.
  1513.      - /V =  Verbose. Shows  the functions  as  they  are
  1514.      called.  Can  be  used  for  learning  OS-functions.
  1515.      (Unfortunately this  option is implemented only in a
  1516.      handful of programs).
  1517.      - /?,/H = Help. Displays a short help.
  1518.  
  1519.    SEE ALSO:
  1520.    Diskfree
  1521.  
  1522.  
  1523.  
  1524. ΓòÉΓòÉΓòÉ 4.29. Names - Produce funny names. ΓòÉΓòÉΓòÉ
  1525.  
  1526.  
  1527.                        NAMES [DUAL MODE]
  1528.  
  1529.    NAME NAMES  - Generate  stange sounding  names based on a
  1530.    mask.
  1531.  
  1532.  
  1533.    SYNTAX
  1534.  
  1535.    names arbitary text -mask [-count]
  1536.  
  1537.    USAGE
  1538.  
  1539.    NAMES can be used to generate stange sounding names based
  1540.    on a  mask given  on the  command line.  This is an ideal
  1541.    tool for  the aspiring  sf writer.  Now you don't have to
  1542.    invent names for palanets or rulers yourself.
  1543.  
  1544.    The mask can contain only characters c and v, where the c
  1545.    stands for  consonant and  v stands  for  vowel.  Without
  1546.    other options NAMES generates 10 entries. You can however
  1547.    specify the  number of  names  generated  by  giving  the
  1548.    number perfixed with a -.
  1549.  
  1550.    You can add arbitary text to the command line. E.g:
  1551.    NAMES -cvvcvcvc entered the room.
  1552.    would generate  10 lines  with random names generated for
  1553.    the person entering the room.
  1554.  
  1555.    SEE ALSO
  1556.  
  1557.  
  1558. ΓòÉΓòÉΓòÉ 4.30. Normal - Set the screen colors to default values. ΓòÉΓòÉΓòÉ
  1559.  
  1560.  
  1561.                       NORMAL [DUAL MODE]
  1562.  
  1563.    NAME NORMAL - set the default colors of the display
  1564.  
  1565.  
  1566.    SYNTAX
  1567.  
  1568.    normal
  1569.  
  1570.    USAGE
  1571.  
  1572.    Normal can  be used  to set  the default  colors  of  the
  1573.    display. Normally this means light grey on black. However
  1574.    if the  BGCOLOR  or  FGCOLOR  environment  variables  are
  1575.    defined, normal  reads the  color definitions  from them.
  1576.    BGCOLOR refers  to the  background color  and FGCOLOR  to
  1577.    foreground color.
  1578.  
  1579.    Available color are:
  1580.      BLACK
  1581.      RED
  1582.      GREEN
  1583.      YELLOW
  1584.      BLUE
  1585.      MAGENTA
  1586.      CYAN
  1587.      WHITE
  1588.      DEFAULT
  1589.    These color  can be  prefixed with eithed light_ or dark.
  1590.    E.g. dark_red or light_blue.
  1591.  
  1592.  
  1593.    Normal uses  ANSI escape sequences. If the ANSI sequences
  1594.    are off,  normal sets  ANSI on  for the  duration of  the
  1595.    program and restores the original situation at the end of
  1596.    the program.  OS/2 seems  to work  in a random fashion in
  1597.    this kind  of situations.  Sometimes  the  colors  change
  1598.    sometimes not. If ANSI sequences are off, normal sets the
  1599.    current cursor  position to  the bottom  of  the  screen,
  1600.    because with my version (1.21) the ANSI- sequences worked
  1601.    every time,  when the  cursor was  at the  bottom of  the
  1602.    screen. Still  CLS-command seems  to reset  all color  to
  1603.    their default value, if ANSI is off.
  1604.  
  1605.    SEE ALSO
  1606.    color, clear
  1607.  
  1608.  
  1609. ΓòÉΓòÉΓòÉ 4.31. Num - Convert between different numerical radixes. ΓòÉΓòÉΓòÉ
  1610.  
  1611.  
  1612.                         NUM [DUAL MODE]
  1613.  
  1614.    NAME NUM - Convert between hexadecimal, octal and decimal
  1615.    representations.
  1616.  
  1617.    SYNTAX
  1618.  
  1619.    num [/H num | /D num | /O num | /B ] | [/?]
  1620.  
  1621.    USAGE
  1622.  
  1623.    NUM can  be used  to convert  integers  between  radixes.
  1624.    Following  radixes  are  supported:  decimal,  octal,
  1625.    hexadecimal and binary. It accepts the following options:
  1626.    /D = input is read as a decimal integer.
  1627.    /O = input is read as an octal integer.
  1628.    /H = input is read as on hexadecimal integer.
  1629.    /B = input is read as a binary number.
  1630.  
  1631.    NUM shows the integer in all four formats.
  1632.  
  1633.    SEE ALSO:
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640. ΓòÉΓòÉΓòÉ 4.32. Pg - Display a file page by page. ΓòÉΓòÉΓòÉ
  1641.  
  1642.  
  1643.                         PG [DUAL MODE]
  1644.  
  1645.    NAME PG - Displays files page at a time.
  1646.  
  1647.  
  1648.    SYNTAX
  1649.  
  1650.    pg [- | /H | /?] file[s]
  1651.  
  1652.    USAGE
  1653.  
  1654.    Pg displays  files a  page at a time. Pg displays as many
  1655.    lines as  are possible  in the  current video  mode. From
  1656.    each line  it displays as many character as possible. The
  1657.    rest of  the line  is omitted.  The special character '-'
  1658.    represents the standard input.
  1659.  
  1660.    If the  input stream  contains special characters such as
  1661.    TAB's, PG  may output  the  wrong  amount  of  characters
  1662.    leading to a wrap-around effect.
  1663.  
  1664.    BUGS
  1665.  
  1666.    Pg may output erroneously, if there are special character
  1667.    such as TAB's in the read text string
  1668.  
  1669.    SEE ALSO
  1670.    head, tail
  1671.  
  1672.  
  1673. ΓòÉΓòÉΓòÉ 4.33. Popd - Restore a previously pushed directory. ΓòÉΓòÉΓòÉ
  1674.  
  1675.  
  1676.                        POPD [DUAL MODE]
  1677.  
  1678.    NAME POPD  - Pop  the top  drive and  directory from  the
  1679.    stack.
  1680.  
  1681.    SYNTAX
  1682.  
  1683.    popd [-q|/q]
  1684.  
  1685.    USAGE
  1686.  
  1687.    With pushd  you can  push the current drive and directory
  1688.    onto directory  stack. You  can then  move freely between
  1689.    directories.  Popd  will  restore  the  top  drive  and
  1690.    directory from  the stack.  With the dirs command you can
  1691.    see what  entries are in the stack. The stack will always
  1692.    contain the  entry "." - that is the current directory as
  1693.    the last  element. Each  session has  separate stack. You
  1694.    can only retrieve drive and directroy combinations, which
  1695.    have been pushed in this session.
  1696.  
  1697.    All three  commands use  a server  to maintain the stack.
  1698.    This server  is dirserv.exe. You can start it manually in
  1699.    a separate session or detach it, so that it belongs to no
  1700.    screen  group.  Nevertheless  all  three  commands  start
  1701.    dirserv  automatically,  if  it  has  not  been  started
  1702.    previously. You can use the -Q (or /Q) option to stop the
  1703.    directory stack  server. This is needed especially if the
  1704.    server is  detached. Under  DOS the  drive and  directory
  1705.    information is  stored in  a file.  The default  for this
  1706.    file is  c:\dirserv.dat. You  can change  it however with
  1707.    the DIRSERV-enviroment variable.
  1708.  
  1709.  
  1710.    SEE ALSO
  1711.    pushd, dirs, dirserv
  1712.  
  1713.  
  1714. ΓòÉΓòÉΓòÉ 4.34. Popup - Show a popup message. ΓòÉΓòÉΓòÉ
  1715.  
  1716.  
  1717.                        POPUP [OS/2 ONLY]
  1718.  
  1719.    NAME POPUP - Show a popup message to the user.
  1720.  
  1721.    SYNTAX
  1722.  
  1723.    popup [/H | /?]OR
  1724.    popup "message with \n between lines" OR
  1725.    popup /F popup-file
  1726.  
  1727.    USAGE
  1728.  
  1729.    Popup is used to show popup messages to the user. You can
  1730.    for example  use it with the at-command to create a to-do
  1731.    list for  each day  and have  popup display  you messages
  1732.    about your daily activities without having to keep an eye
  1733.    on the clock.
  1734.  
  1735.    Popup can  read the  displayed message  either  from  the
  1736.    command  line  or  from  a  file.  In  the  command  line
  1737.    different lines  are separated  with \n.  In a  file each
  1738.    line of  the file  is displayed  in its  own line. No \n-
  1739.    character are needed.
  1740.  
  1741.    If popup  is started without any parameters, it reads its
  1742.    message from the popup.dat file.
  1743.  
  1744.    EXAMPLES
  1745.    1) Show a message from command line
  1746.    popup "\n\n Any message here\n"
  1747.  
  1748.  
  1749.  
  1750.    SEE ALSO
  1751.    at
  1752.  
  1753.  
  1754. ΓòÉΓòÉΓòÉ 4.35. Pr - Print a file with header information. ΓòÉΓòÉΓòÉ
  1755.  
  1756.  
  1757.                         PR [DUAL MODE]
  1758.  
  1759.    NAME PR - Print files.
  1760.  
  1761.  
  1762.    SYNTAX
  1763.  
  1764.    pr [-lines | - | /H | /?] file(s)
  1765.  
  1766.    USAGE
  1767.  
  1768.    PR is  used to  print files.  Each file  is preceded with
  1769.    header information:  filename, current  date and  date of
  1770.    creation.
  1771.  
  1772.    With the  -lines option  you can  control, how many lines
  1773.    are output before a form feed is issued. The default page
  1774.    length is 66 lines.
  1775.  
  1776.    PR outputs  to the  standard output, so normally you have
  1777.    to redired its output to LPT1, LPT2 etc.
  1778.  
  1779.    Without parameters  PR reads from the standard input. You
  1780.    can also  include the  special character  - to denote the
  1781.    standard input,  if PR must read both from some files and
  1782.    standard input.
  1783.  
  1784.  
  1785.    EXAMPLES
  1786.    PR -80 pr.c >lpt1:
  1787.    would print pr to LPT1: with page length set to 80.
  1788.  
  1789.    SEE ALSO
  1790.  
  1791.  
  1792. ΓòÉΓòÉΓòÉ 4.36. Pushd - Push a directory onto the directory stack. ΓòÉΓòÉΓòÉ
  1793.  
  1794.  
  1795.                        PUSHD [DUAL MODE]
  1796.  
  1797.    NAME PUSHD  - Push the current drive and directory onto a
  1798.    stack.
  1799.  
  1800.    SYNTAX
  1801.  
  1802.    pushd [-q|/q]
  1803.  
  1804.    USAGE
  1805.  
  1806.    With pushd  you can  push the current drive and directory
  1807.    onto directory  stack. You  can then  move freely between
  1808.    directories.  Popd  will  restore  the  top  drive  and
  1809.    directory from  the stack.  With the dirs command you can
  1810.    see what  entries are in the stack. The stack will always
  1811.    contain the  entry "." - that is the current directory as
  1812.    the last  element. Each  session has  separate stack. You
  1813.    can only retrieve drive and directroy combinations, which
  1814.    have been pushed in this session.
  1815.  
  1816.    All three  commands use  a server  to maintain the stack.
  1817.    This server  is dirserv.exe. You can start it manually in
  1818.    a separate session or detach it, so that it belongs to no
  1819.    screen  group.  Nevertheless  all  three  commands  start
  1820.    dirserv  automatically,  if  it  has  not  been  started
  1821.    previously. You can use the -Q (or /Q) option to stop the
  1822.    directory stack  server. This is needed especially if the
  1823.    server is  detached. Under  DOS the  drive and  directory
  1824.    information is  stored in  a file.  The default  for this
  1825.    file is  c:\dirserv.dat. You  can change  it however with
  1826.    the DIRSERV-enviroment variable.
  1827.  
  1828.    SEE ALSO
  1829.    popd, dirs, dirserv
  1830.  
  1831.  
  1832. ΓòÉΓòÉΓòÉ 4.37. Rev -Reverse lines. ΓòÉΓòÉΓòÉ
  1833.  
  1834.  
  1835.                         REV [DUAL MODE]
  1836.  
  1837.    NAME REV - Reverse lines of text.
  1838.  
  1839.    SYNTAX
  1840.  
  1841.    rev [file(s) [/H | /? | -]
  1842.  
  1843.    USAGE
  1844.  
  1845.    Rev is  used to  reverse the  lines from  a given file or
  1846.    from the standard input. The special character '-' refers
  1847.    to the standard input.
  1848.  
  1849.    SEE ALSO
  1850.  
  1851.  
  1852. ΓòÉΓòÉΓòÉ 4.38. Runtime - Show the amount of time a program run. ΓòÉΓòÉΓòÉ
  1853.  
  1854.  
  1855.                       RUNTIME [DUAL MODE]
  1856.  
  1857.    NAME RUNTIME - Show the time it takes to run a command.
  1858.  
  1859.    SYNTAX
  1860.  
  1861.    runtime [/R | /H | /?] command arguments
  1862.  
  1863.    USAGE
  1864.  
  1865.    Runtime is  used to  show how  long it  takes  to  run  a
  1866.    command. Runtime  shows the  result  in  hours,  minutes,
  1867.    seconds and hundredths of seconds. Runtime works with all
  1868.    types of  executable files,  including .CMD  in OS/2  and
  1869.    .BAT in  DOS. If  the arguments  given to command contain
  1870.    arguments applicable to runtime, runtime interprets them,
  1871.    but passes them also to command. E.g. runtime mem -? sets
  1872.    the help  option on for both runtime and mem. If you want
  1873.    to have  only mem  to have  the -?  option, set -? inside
  1874.    double quetes  and precede  it with a space. E.g. runtime
  1875.    mem " -?".
  1876.  
  1877.    The internal  commands to shell such as dir, echo are not
  1878.    executable files and cannot be direcly run by runtime. If
  1879.    you want  to time  the dir-command  for example, you must
  1880.    start the shell first. The command to run is:
  1881.    C:>runtime cmd /c dir
  1882.    The /c  command instruct  the shell  to exit  immediately
  1883.    after it  has processed the commands on the command line.
  1884.    Without the  /c-switch the new command shell would remain
  1885.    in memory unnecessarily.
  1886.  
  1887.    You can also use runtime to keep time of your activities.
  1888.    E.g. runtime  "favourite-game", would give you, after you
  1889.    finished, the time you have played.
  1890.  
  1891.    OPTIONS
  1892.  
  1893.    Following options are recognized:
  1894.      - /R =  Report. Displays results in a format similar
  1895.      to  LANMAN.INI  or  other  Microsoft  configuration
  1896.      files.
  1897.      - /?,/H = Help. Displays a short help.
  1898.  
  1899.    SEE ALSO
  1900.    timer
  1901.  
  1902.  
  1903. ΓòÉΓòÉΓòÉ 4.39. Scan - Scan through directories and run commands. ΓòÉΓòÉΓòÉ
  1904.  
  1905.  
  1906.                        SCAN [DUAL MODE]
  1907.  
  1908.    NAME SCAN - Scan volumes and run commands.
  1909.  
  1910.    SYNTAX
  1911.  
  1912.    scan   [dir(s)]    [files(s)]    [/NOD|/TEST|/H|/?]
  1913.    [+A|+R|+S|+H|+D|+A]  [-commands]
  1914.  
  1915.  
  1916.    USAGE
  1917.  
  1918.    Scan is  used to  scan through one or several volumes. As
  1919.    it finds files, it runs the commands specified on command
  1920.    line. If  no command is given, scan shows the name of the
  1921.    file as the FF-command.
  1922.  
  1923.    Scan can  be given  a list  of drives  e.g  C:  D:.  Scan
  1924.    searches these  drives for  the given  files. Each  drive
  1925.    specifier can  contain also  a  directory  specifier  e.g
  1926.    c:\test,  then  scan  searches  starting  from  the  test
  1927.    directory. Normally  scan starts its search from the root
  1928.    directory.
  1929.  
  1930.    Normally scan  finds files  with attribute  bit, readonly
  1931.    bit  or  no  bits  set.  You  can  disable  the  default
  1932.    attributes with the /NOD (=No Default) switch.
  1933.  
  1934.    Files are  specified using normal OS/2 rules with ? and *
  1935.    acting as wild cards.
  1936.  
  1937.    There is  a /TEST-switch,  which outputs  the commands as
  1938.    they would be run.
  1939.  
  1940.    If you  want to  give arguments  to the command, you must
  1941.    encluse the  command  and  its  arguments  inside  double
  1942.    quetes. The  special string %fname is expanded to contain
  1943.    the fully qualified filename. E.g.:
  1944.    SCAN . /S *.exe -"copy %fname a:"
  1945.    would copy  all *.exe files from this directory and below
  1946.    to the A:-drive.
  1947.  
  1948.    There can  be any  amount of  command at  the end  of the
  1949.    command line.  Commands are  run in  the  order  as  they
  1950.    appear on the command line, so be sure to put del-command
  1951.    as last.
  1952.  
  1953.    The following options are recongnized:
  1954.  
  1955.  
  1956.    +H include also hidden files.
  1957.    +S include system files
  1958.    +R include read-only files
  1959.    +A include files with attribute-bit.
  1960.    +D include directories (does not make too much sense with
  1961.    SCAN).
  1962.    +N include  normal files.  This is  the  default.  Normal
  1963.    files include  files with read-only or archive or no bits
  1964.    at all set.
  1965.    /NOD No  Default. Do  not include  any files  by default.
  1966.    SOme combination of attributes must be given.
  1967.    /TEST Show  commands as  they would be generated, without
  1968.    running them.
  1969.  
  1970.    SEE ALSO
  1971.    ff
  1972.  
  1973.  
  1974. ΓòÉΓòÉΓòÉ 4.40. Setprty - Set the priority of a process. ΓòÉΓòÉΓòÉ
  1975.  
  1976.  
  1977.                       SETPRTY [OS/2 ONLY]
  1978.  
  1979.    NAME SETPRTY  - Run  command  and  set  its  priority  to
  1980.    specified value.
  1981.  
  1982.    SYNTAX
  1983.  
  1984.    SETPRTY
  1985.    [(/I)DLE|(/R)EGULAR|(/T)IMECRITICALT|(/N)OCHANGE|(/F)OREG
  1986.    ROUND] [(/MA)XIMUM|(/MI)NIMUM|number] command argument(s)
  1987.  
  1988.    USAGE
  1989.  
  1990.    SETPRTY sets  the priority  to a specified value and then
  1991.    runs a  command with  given values.  The allowed priority
  1992.    classes are:
  1993.  
  1994.      - /I IDLE = lovest class
  1995.      - /R REGULAR = class for user commands
  1996.      - /T TIMECRITICAL  = highest class. use sparingly if
  1997.      at all.
  1998.      - /N NOCHANGE = the current priority class is used
  1999.      - /F FOREGROUND = run command in the foreground
  2000.  
  2001.    Immediately after  priority class  you must  specify  the
  2002.    change in  priority. The  allowed values  are -31 to +31.
  2003.    With /MA(XIMUN)  you can  set the priority to the maximum
  2004.    in current priority class and with /MI(NIMUM) to minimum.
  2005.  
  2006.    If  SETPRTY  is  run  without  parameters  it  gives  the
  2007.    priority of the current session.
  2008.  
  2009.    SEE ALSO
  2010.  
  2011.  
  2012. ΓòÉΓòÉΓòÉ 4.41. Setver - Set the modification time of a file to its version number. ΓòÉΓòÉΓòÉ
  2013.  
  2014.  
  2015.                       SETVER [DUAL MODE]
  2016.  
  2017.    NAME SETVER  - Set the modification time of a file to the
  2018.    version number.
  2019.  
  2020.    SYNTAX
  2021.  
  2022.    setver vermaj.vermin file(s) [/H | /?]
  2023.  
  2024.    USAGE
  2025.  
  2026.    A clever  way to  indicate the version of a given program
  2027.    is to  put the  version number  to its  last modification
  2028.    time. Taking  dir of  a directory  then immediately shows
  2029.    the version  number of  the programs. This is at least in
  2030.    my mind  a much  cleaner aproach than putting the version
  2031.    number into the program name. With FATs (file system used
  2032.    with DOS) limit of only 8 character for the program name,
  2033.    this would limit the naming even further.
  2034.  
  2035.    Setver  is  just  a  program  used  to  change  the  last
  2036.    modification time  of a file to its version number. It is
  2037.    given two  parameters. First the verion major and version
  2038.    minor number separated by a period. Then the filenames to
  2039.    be modified.  E.g. setver  1.10 *.exe,  would change  the
  2040.    version numbers of all *.exe-programs to 1.10.
  2041.  
  2042.    Following options are recognized:
  2043.      - /?,/H = Help. Displays a short help.
  2044.  
  2045.    SEE ALSO:
  2046.  
  2047.  
  2048. ΓòÉΓòÉΓòÉ 4.42. Shutdown - Prepare the system for power down. ΓòÉΓòÉΓòÉ
  2049.  
  2050.  
  2051.                      SHUTDOWN [OS/2 ONLY]
  2052.  
  2053.    NAME SHUTDOWN - Prepare the system for power down.
  2054.  
  2055.    SYNTAX
  2056.  
  2057.    shutdown [/V | /Y | /N] | [/H | /?]
  2058.  
  2059.    USAGE
  2060.  
  2061.    Shutdown flushes  all buffer  to the disk and closes down
  2062.    the file  system. After  this the  system can  be  safely
  2063.    powered down or restarted with CONTROL-ALT-DEL. It can be
  2064.    used if  you run  OS/2 without  Presentation Manager with
  2065.    for example CMD.EXE as your only shell.
  2066.  
  2067.    Following options are recognized:
  2068.      - /V =  Verbose. Shows  the functions  as  they  are
  2069.      called. Can be used for learning OS-functions.
  2070.      - /?,/H = Help. Displays a short help.
  2071.      - /Y =  Yes. No confirmation is requested. System is
  2072.      shutdown.
  2073.      - /N =  No. No action is taken. Similar to answering
  2074.      N to confirmation message.
  2075.  
  2076.    SEE ALSO:
  2077.  
  2078.  
  2079. ΓòÉΓòÉΓòÉ 4.43. Sleep - Sleep for the specified amount. ΓòÉΓòÉΓòÉ
  2080.  
  2081.  
  2082.                        SLEEP [DUAL MODE]
  2083.  
  2084.    NAME SLEEP - Sleep for a specified number of seconds.
  2085.  
  2086.    SYNTAX
  2087.  
  2088.    sleep [secs] | [/H | /?]
  2089.  
  2090.    USAGE
  2091.  
  2092.    Sleep sleep  for the  specified amount  of seconds. If no
  2093.    number is  given on  command line, the value is read from
  2094.    standard input. The /H and /? options give a brief help.
  2095.  
  2096.    SEE ALSO
  2097.    until
  2098.  
  2099.  
  2100. ΓòÉΓòÉΓòÉ 4.44. Strings - Display the printable string from a binary file. ΓòÉΓòÉΓòÉ
  2101.  
  2102.  
  2103.                       STRINGS [DUAL MODE]
  2104.  
  2105.    NAME STRINGS
  2106.  
  2107.    USAGE
  2108.  
  2109.    strings [-count] file[s] | /H | /?] [/P]
  2110.  
  2111.    DESCRIPTION
  2112.  
  2113.    Strings  locates  and  outputs  sequences  of  printable
  2114.    characters from binary files. The length of the string is
  2115.    given with  the -count  option. When  no length is given,
  2116.    strings uses 5 as a default.
  2117.  
  2118.    Why is a tool like strings useful? You can use strings to
  2119.    extract all  the possible  strings and  messages from  an
  2120.    executable file.  These strings  can include  version and
  2121.    revision numbers of a program.
  2122.  
  2123.    OPTIONS
  2124.  
  2125.    Following options are recognized:
  2126.      - /P = Pause mode. Pauses after each screenful.
  2127.      - /?,/H = Help. Displays a short help.
  2128.  
  2129.    BUGS
  2130.  
  2131.    The C-function  used to  identify "printable"  characters
  2132.    does not  recognize the special european characters. Some
  2133.    of the  messages may  be cut  to separate pieces and some
  2134.    not printed at all.
  2135.  
  2136.    SEE ALSO
  2137.  
  2138.  
  2139. ΓòÉΓòÉΓòÉ 4.45. Tail - Show the last lines from a file. ΓòÉΓòÉΓòÉ
  2140.  
  2141.  
  2142.                        TAIL [DUAL MODE]
  2143.  
  2144.    NAME TAIL - Display the last lines from a file.
  2145.  
  2146.  
  2147.    SYNTAX
  2148.  
  2149.    tail [-count | - | /H | /?] file
  2150.  
  2151.    USAGE
  2152.  
  2153.    Tail displays  the last lines from a file. It can be used
  2154.    for example  to see the last messages from a very big log
  2155.    file. The  count parameter  can be  given to indicate how
  2156.    many lines to output. If count is omitted, it defaults to
  2157.    10. Tail dispays only as many character from each line as
  2158.    there are colums in the current video mode. Normally this
  2159.    is 80.  The rest  of the  line is  omitted.  The  special
  2160.    character "-" on command line means the standard input.
  2161.  
  2162.  
  2163.    SEE ALSO
  2164.    head
  2165.  
  2166.  
  2167. ΓòÉΓòÉΓòÉ 4.46. Tee - Make a copy of the stream to a file. ΓòÉΓòÉΓòÉ
  2168.  
  2169.  
  2170.                         TEE [DUAL MODE]
  2171.  
  2172.    NAME TEE - copy data from within a pipe into a file
  2173.  
  2174.  
  2175.    SYNTAX
  2176.  
  2177.    tee [file] [/H | /?]
  2178.  
  2179.  
  2180.    USAGE
  2181.  
  2182.    Tee copies  standard input to standard output unmodified.
  2183.    At the same time it makes a duplicate of this data into a
  2184.    file given  on command  line. It  is often  used in  long
  2185.    command scripts to take intermediate results to a file.
  2186.  
  2187.    SEE ALSO
  2188.  
  2189.  
  2190. ΓòÉΓòÉΓòÉ 4.47. Timer - Taking time. ΓòÉΓòÉΓòÉ
  2191.  
  2192.  
  2193.                        TIMER [DUAL MODE]
  2194.  
  2195.    NAME TIMER - Starts a timer.
  2196.  
  2197.    SYNTAX
  2198.  
  2199.    timer [/start name| /stop name] [-q|/q]
  2200.  
  2201.    USAGE
  2202.  
  2203.    Timer is  used to  time time periods. It can be used like
  2204.    runtime command,  but  time  counting  is  more  relaxed.
  2205.    Runtime counts  one command.  Timers can  be started  and
  2206.    stopped at  any given moment. Timers are started with the
  2207.    /start command,  which is  follewed by  the  timer  name.
  2208.    Timer names  can be up to 24 chars. It is very convenient
  2209.    to use the name of the command as the timer command also.
  2210.  
  2211.    Timers are  stopped with  the /stop  command.  Under  DOS
  2212.    timers  are  stored  in  a  file.  The  default  name  is
  2213.    c:\timersrv.dat,  but  it  can  be  changed  with  the
  2214.    TIMERSERV-environment variable.  Under OS/2  there  is  a
  2215.    separate server-process,  which is automatically started.
  2216.    You can  however start  it also  yourself.  This  can  be
  2217.    useful, if you want to run servers as detached processes(
  2218.    e.g detach  timersrv). There  is a -Q command to stop the
  2219.    server process. Under DOS it removes the timer-file.
  2220.  
  2221.    SEE ALSO
  2222.    timersrv
  2223.  
  2224.  
  2225. ΓòÉΓòÉΓòÉ 4.48. Timersrv - A server for the TIMER command. ΓòÉΓòÉΓòÉ
  2226.  
  2227.  
  2228.                         TIMERSRV [OS/2]
  2229.  
  2230.    NAME TIMERSRV - Timer server process.
  2231.  
  2232.    SYNTAX
  2233.  
  2234.    timersrv
  2235.  
  2236.    USAGE
  2237.  
  2238.    Timersrv is  the server  process used  to  store  started
  2239.    timers. It  works only  under OS/2.  Under DOS timers are
  2240.    stored in a file.
  2241.  
  2242.    SEE ALSO
  2243.    timer
  2244.  
  2245.  
  2246. ΓòÉΓòÉΓòÉ 4.49. Tm - Show the time. ΓòÉΓòÉΓòÉ
  2247.  
  2248.  
  2249.                         TM [DUAL MODE]
  2250.  
  2251.    NAME TM - Time mark. Shows the current time.
  2252.  
  2253.    SYNTAX
  2254.  
  2255.    tm [/H | /?]
  2256.  
  2257.    USAGE
  2258.  
  2259.    TM shows the current time in the format:
  2260.    Wed Jan 02 02:00:03 1980.
  2261.    The text  is right aligned to the display. TM can be used
  2262.    to apppend creation etc. information to text files.
  2263.  
  2264.    SEE ALSO:
  2265.  
  2266.  
  2267. ΓòÉΓòÉΓòÉ 4.50. Touch - Touch a file changing its modification time. ΓòÉΓòÉΓòÉ
  2268.  
  2269.  
  2270.                        TOUCH [DUAL MODE]
  2271.  
  2272.    NAME TOUCH - Touch the file changing its date stamp.
  2273.  
  2274.    SYNTAX
  2275.    touch [/H | /?] file(s)
  2276.  
  2277.    DESCRIPTION
  2278.  
  2279.    Touch changes  the time and date entry of last write of a
  2280.    file to the current time. It is mainly used with programs
  2281.    in the  MAKE category. With touch you can change the date
  2282.    and time  of a source file and force its compilation on a
  2283.    nex MAKE. If the file given does not exist, touch creates
  2284.    an empty file.
  2285.  
  2286.    SEE ALSO
  2287.  
  2288.  
  2289. ΓòÉΓòÉΓòÉ 4.51. Unix2dos - Convert files between UNIX and DOS. ΓòÉΓòÉΓòÉ
  2290.  
  2291.  
  2292.                      UNIX2DOS [DUAL MODE]
  2293.  
  2294.    NAME  UNIX2DOS  -  Translate  files  between  UNIX  and
  2295.    DOS/OS/2.
  2296.  
  2297.  
  2298.    SYNTAX
  2299.  
  2300.    UNIX2DOS [file1 [file2]] [/? | /H]
  2301.  
  2302.    USAGE
  2303.    UNIX2DOS is  used to  translate files  between  UNIX  and
  2304.    DOS/OS/2 text  formats. In  UNIX each  line ends  with  a
  2305.    line-feed character.  IN DOS/OS/2  each  line  ends  with
  2306.    carriage-return and  line-feed chars. Therefore, you must
  2307.    do a  little translation  when you move file between UNIX
  2308.    and DOS or OS/2.
  2309.  
  2310.    SEE ALSO
  2311.    dos2unix
  2312.  
  2313.  
  2314. ΓòÉΓòÉΓòÉ 4.52. Until - Wait until a specific time. ΓòÉΓòÉΓòÉ
  2315.  
  2316.  
  2317.                        UNTIL [DUAL MODE]
  2318.  
  2319.    NAME UNTIL - Waits until a specified time.
  2320.  
  2321.    SYNTAX
  2322.  
  2323.    until time
  2324.  
  2325.    USAGE
  2326.  
  2327.    Until is  used to  wait until a given time of the day. It
  2328.    support two  time formats.  The first  list the  absolute
  2329.    time  in  hh:mm:ss  -format,  where  hh=hour,  mm=minute,
  2330.    ss=second. The time is parsed from left to right. That is
  2331.    a two  part time  represents hh:mm  and a  one part  time
  2332.    represents hours only.
  2333.  
  2334.    The second  format is given relative to the current time.
  2335.    This format is identical to the first format, except that
  2336.    it starts with a plus (+).
  2337.  
  2338.    Until can  be used for example in command scripts to wait
  2339.    to a specified time. It is equivalent to the
  2340.    at time  null-command, where null is a command which does
  2341.    nothing.
  2342.  
  2343.    EXAMPLES
  2344.  
  2345.    1) Wait until ten o'clock
  2346.    until 10:00
  2347.    2) Wait ten seconds
  2348.    until +00:00:10
  2349.    3) Check the until command.
  2350.    runtime until +00:00:10
  2351.  
  2352.    SEE ALSO
  2353.    at
  2354.  
  2355.  
  2356. ΓòÉΓòÉΓòÉ 4.53. Uptime - Show how long the system has been up. ΓòÉΓòÉΓòÉ
  2357.  
  2358.  
  2359.                       UPTIME [OS/2 ONLY]
  2360.  
  2361.    NAME UPTIME - Show the time the system has been up.
  2362.  
  2363.    SYNTAX
  2364.  
  2365.    uptime [/R | /H | /?]
  2366.  
  2367.    USAGE
  2368.  
  2369.    Uptime shows  the time  the system  has been up. It shows
  2370.    this in days, hours, minutes and seconds.
  2371.  
  2372.    SEE ALSO
  2373.  
  2374.  
  2375. ΓòÉΓòÉΓòÉ 4.54. Version - Show current version. ΓòÉΓòÉΓòÉ
  2376.  
  2377.  
  2378.                       VERSION [DUAL MODE]
  2379.  
  2380.    NAME VERSION - Shows version information for TOOLS/2.
  2381.  
  2382.    SYNTAX
  2383.  
  2384.    version
  2385.  
  2386.    USAGE
  2387.  
  2388.    Version shows  the lates  version of  TOOLS/2 (surprise!)
  2389.    and also  address where  you can send bug reports. I will
  2390.    try to  correct the  known mistakes in upcoming versions.
  2391.    You  can  also  send  in  suggestions  for  new  tools,
  2392.    suggestions about new command line options etc.
  2393.  
  2394.  
  2395.  
  2396.    EXAMPLES
  2397.  
  2398.    SEE ALSO
  2399.    readme.txt-file on distribution diskette.
  2400.  
  2401.  
  2402. ΓòÉΓòÉΓòÉ 4.55. Wipefile - Destroy a file by writing random data over it. ΓòÉΓòÉΓòÉ
  2403.  
  2404.  
  2405.                      WIPEFILE [DUAL MODE]
  2406.  
  2407.    NAME WIPEFILE
  2408.  
  2409.    SYNTAX
  2410.  
  2411.    Wipefile -count file(s) | /H | /? | /V | /TEST | /N | /Y]
  2412.  
  2413.  
  2414.    DESCRIPTION
  2415.  
  2416.    Wipefile destroys  the contents of a file by writing over
  2417.    it  randomized  data  multiple  time.  The  number  of
  2418.    overwrites is given with -count option.
  2419.  
  2420.    You can  test the  program with  using either /TEST or /N
  2421.    option. Then  the program  will show  the files  it would
  2422.    overwrite, but leaves them untouched.
  2423.  
  2424.    Wipefile only  wipes the  files, it does not delete them.
  2425.    Normally wipefile  requires confirmation  for  each  file
  2426.    before destruction.  With the  /Y-option, wipefile  takes
  2427.    the  default  action  and  wipes  each  file  without
  2428.    confirmation.
  2429.  
  2430.    Why  are  programs  in  the  wipefile  category  needed?
  2431.    Normally deleting  a file  does not destroy the data from
  2432.    disk. The operating system only marks the disk sectors of
  2433.    the file  unused. The  information can be retained with a
  2434.    tool, which  reads data  directly from  raw disk.  If you
  2435.    want to  be absolutely  sure, that  no one  can read your
  2436.    data, you  must first destroy the contents of the file by
  2437.    physically writing over it.
  2438.  
  2439.    SEE ALSO:
  2440.  
  2441.  
  2442. ΓòÉΓòÉΓòÉ 4.56. Words - Count the number of characters, words and lines in a file. ΓòÉΓòÉΓòÉ
  2443.  
  2444.  
  2445.                        WORDS [DUAL MODE]
  2446.  
  2447.    NAME WORDS  -  count  the  number  of  lines,  words  and
  2448.    characters in text files.
  2449.  
  2450.    SYNTAX
  2451.  
  2452.    WORDS file(s) [/H | /?]
  2453.  
  2454.    USAGE
  2455.  
  2456.    WORDS shows  how many  lines, words  and characters  each
  2457.    specified text file contains.
  2458.  
  2459.    SEE ALSO
  2460.  
  2461.  
  2462.